package strategy.strategy_plane;

abstract class Plane {

    protected String name;

    protected Fly fly;

    protected TakeOff takeOff;

    public void setFly(Fly fly){
        this.fly = fly;
    }

    public void setTakeOff(TakeOff takeOff) {
        this.takeOff = takeOff;
    }

    public String getName() {
        return name;
    }

    public Fly getFly() {
        return fly;
    }

    public TakeOff getTakeOff() {
        return takeOff;
    }
/*
    public void planeFly(){
        fly.fly();
    }

    public void planeTakeOff(){
        takeOff.takeOff();
    }*/

}
